<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/WEB-INF/template/comum/template.xhtml"
                xmlns="http://www.w3.org/1999/xhtml" 
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core" 
                xmlns:c="http://java.sun.com/jsp/jstl/core">

    <ui:define name="conteudo">
        <h:form class="form-horizontal">
            <fieldset>
                <div id="legend">
                    <legend class="">JCash - Novo Usuário</legend>
                </div>
                <div class="control-group">
                    <!-- Username -->
                    <label class="control-label"  for="login">Login</label>
                    <div class="controls">
                        <h:inputText value="${loginController.login}" id="login" class="input-xlarge" required="true" requiredMessage="Nome do usuário é requerido" />
                    </div>
                </div>
                
                <div class="control-group">
                    <!-- Username -->
                    <label class="control-label"  for="nomeUsuario">Nome do Usuário</label>
                    <div class="controls">
                        <h:inputText value="${loginController.nome}" id="username" class="input-xlarge" required="true" requiredMessage="Nome do usuário é requerido" />
                    </div>
                </div>

                <div class="control-group">
                    <!-- Password-->
                    <label class="control-label" for="password">Senha</label>
                    <div class="controls">
                        <h:inputSecret value="${loginController.senha1}" id="password" class="input-xlarge" required="true" requiredMessage="Senha é requerido"/>
                    </div>
                </div>

                <div class="control-group">
                    <!-- Password-->
                    <label class="control-label"  for="password2">Repita a Senha</label>
                    <div class="controls">
                        <h:inputSecret value="${loginController.senha2}" id="password2" class="input-xlarge" required="true" requiredMessage="Repita a Senha"/>
                    </div>
                </div>

                <div class="control-group">
                    <!-- Button -->
                    <div class="controls">
                        <h:commandLink action="#{loginController.criarUsuario}" styleClass="btn btn-primary" >
                            <i class="icon-file icon-white"> <!--  --> </i> <font color="white">Gravar</font>
                        </h:commandLink>
                        <a class="btn " href="login.jsf">Logar</a>
                    </div>
                </div>
            </fieldset>
        </h:form>    
    </ui:define>
</ui:composition>


